//
//  QLLoginModel.h
//  天使配送
//
//  Created by qlwl on 16/6/13.
//  Copyright © 2016年 qlwl. All rights reserved.
//

#import <Foundation/Foundation.h>

static NSString * LoginModelChangedNotification = @"LoginModelChangedNotification"; // 当更改保存登录信息时会发送通知

@interface QLLoginModel : NSObject
@property (nonatomic, copy) NSString *userId;
@property (nonatomic, copy) NSString *mobilephone ;
@property (nonatomic, copy) NSString *levelponit;
@property (nonatomic, copy) NSString *age;
@property (nonatomic, copy) NSString *sex ;
@property (nonatomic, assign) int authenticationtype;
@property (nonatomic, copy) NSString *isdelted;
@property (nonatomic, copy) NSString *headpicurl;
@property (nonatomic, copy) NSString *birthday ;
@property (nonatomic, assign) int isauthentication;//0,表示没有认证，1认证进行中，2，已认证，3认证失败
@property (nonatomic, copy) NSString *idbackurl;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *idfronturl;
@property (nonatomic, copy) NSString *password;
@property (nonatomic, copy) NSString *usertype ;
@property (nonatomic, copy) NSString *createtime;
@property (nonatomic, copy) NSString *updatetime;
@property (nonatomic, copy) NSString * yx_accid ; //
@property (nonatomic, copy) NSString * yx_token ; //


- (BOOL)save;
// 读取当前授权模型
+ (instancetype)accountFromSandbox;
+(BOOL)endLogin;
//是否登录
+ (BOOL)isLogin;

+(void)inquiryUserInfoById:(NSString *)userId andReceivedInfo:(void(^)(NSDictionary * result))received;

@end
